import json
import random
from kafka import KafkaConsumer

bootstrap_servers = "192.168.88.128:9092"
consumer = KafkaConsumer(
    auto_offset_reset='latest',
    bootstrap_servers=bootstrap_servers,
    group_id=str(random.randint(1, 99999999)),
)
consumer.subscribe(["result"])

for data in consumer:
    print(data)
